x11: Don't delete important signal handlers randomly
authorBenjamin Otte <otte@redhat.com>
Mon, 13 Dec 2021 00:54:21 +0000 (01:54 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 13 Dec 2021 00:54:21 +0000 (01:54 +0100)
commit252b9fc39cfb0b717b23d422dc05b02f7bb4088c
treec106e3b7440bb3a4dad753a92b7c74084fad5f7a
parent6fc5e04d7c868b9b4efdd957d03ae5d3bbd91b12
x11: Don't delete important signal handlers randomly

We finish the write to the output stream long after the stream has been
closed, so we want to keep the event handler around to do just that.

Instead, remove the handler on finalize.
gdk/x11/gdkselectionoutputstream-x11.c